#define _CRT_SECURE_NO_WARNINGS 1 
#include <stdio.h>
int main() {
    double x1, x2;
    double a, b, c;
    double d;
    scanf("%lf,%lf,%lf", &a, &b, &c);
    d = b * b - 4 * a * c;
    if (a != 0 && d > 0) {
        x1 = (-b + sqrt(d)) / (2 * a);
        x2 = (-b - sqrt(d)) / (2 * a);
    }
    if (a != 0 && d == 0) {
        x1 = x2 = -b / (2 * a);
    }
    printf("x1=%.2lf\nx2=%.2lf", x1, x2);

    return 0;
}